import requests
from lxml import etree


url = 'http://www.netbian.com/mei/index.htm'
head = {
    'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36'
}

resp = requests.get(url, headers=head)
resp.encoding = 'gbk'

data_html = resp.text

tree = etree.HTML(data_html)
lis = tree.xpath('//*[@id="main"]/div[3]/ul//a')
print(lis)
